<?php

/**
 * Retrives Customer Groups for Allow Upload Videos
 */
class AW_Imagetest_Model_System_Config_Source_Customer_Group
{
    /**
     * Array with params for Select element
     * @return array
     */
    public function toOptionArray()
    {
        $collection = Mage::getModel('customer/group')->getCollection();
        $arr = array();
        foreach ($collection as $group){
            $arr[] = array(
                'value' => $group->getId(),
                'label' => $group->getCustomerGroupCode()
            );
        }
        return $arr;
    }
}



